﻿using Castle.DynamicProxy;
using CNKI.TPI.Web.Base;
using CNKI.TPI.Web.Search.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.SessionState;

namespace CNKI.TPI.Web.UI.Controllers.Search
{
    [SessionState(SessionStateBehavior.ReadOnly)]
    public class MediaResourceController : BaseController
    {
        INaviService naviService = null;

        public MediaResourceController(INaviService naviService)
        {
            this.naviService = generator.CreateInterfaceProxyWithTarget<INaviService>(naviService, new IInterceptor[] { new LogInterceptor() });
        }

        //
        // GET: /MediaResource/

        public ActionResult Index()
        {
            ViewBag.MediaResource = naviService.GetMediaResourceList();
            //ViewBag.MediaType = 1;//多媒体标识
            return View("MediaResource");
        }

    }
}
